﻿using System;
using System.Globalization;
using System.Windows.Data;

namespace Kindohm.KSynth.AudioCanvas
{
    public class BpmConverter : IValueConverter
    {

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return ((double)value).ToString("0");
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return double.Parse((string)value);
        }

    }
}
